package com.bye.xiaomi_mall.domain;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 td_goods
 *
 * @author ruoyi
 * @date 2025-03-15
 */
public class TdGoods extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 商品名
     */
    @Excel(name = "商品名")
    private String goodsName;

    /**
     * 商品价格
     */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /**
     * 销量
     */
    @Excel(name = "销量")
    private String sales;

    /**
     * 库存
     */
    @Excel(name = "库存")
    private String inventory;

    /**
     * 商品状态  2 无库存   1 上架  0 下架
     */
    @Excel(name = "商品状态  2 无库存   1 上架  0 下架  ")
    private String status;

    /**
     * 商品图片
     */
    @Excel(name = "商品图片")
    private String image;

    /**
     * 商品分类
     */
    @Excel(name = "商品分类")
    private String category;

    /**
     * 商品特性（多个）
     */
    @Excel(name = "商品特性", readConverterExp = "多=个")
    private String features;

    @Excel(name = "拆开的商品特性")
    private List<String> featuresList;

    @Excel(name = "商品特性集合")
    private List<TdGoodsSpecifications> tdGoodsSpecificationsList;



    /**
     * 1 首页展示  0 首页不展示
     */
    @Excel(name = "1 首页展示  0 首页不展示")
    private String isHomeShow;

    public List<TdGoodsSpecifications> getTdGoodsSpecificationsList() {
        return tdGoodsSpecificationsList;
    }

    public void setTdGoodsSpecificationsList(List<TdGoodsSpecifications> tdGoodsSpecificationsList) {
        this.tdGoodsSpecificationsList = tdGoodsSpecificationsList;
    }

    public List<String> getFeaturesList() {
        return featuresList;
    }

    public void setFeaturesList(List<String> featuresList) {
        this.featuresList = featuresList;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setSales(String sales) {
        this.sales = sales;
    }

    public String getSales() {
        return sales;
    }

    public void setInventory(String inventory) {
        this.inventory = inventory;
    }

    public String getInventory() {
        return inventory;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }

    public void setFeatures(String features) {
        this.features = features;
    }

    public String getFeatures() {
        return features;
    }

    public void setIsHomeShow(String isHomeShow) {
        this.isHomeShow = isHomeShow;
    }

    public String getIsHomeShow() {
        return isHomeShow;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("goodsName", getGoodsName())
                .append("goodsPrice", getGoodsPrice())
                .append("sales", getSales())
                .append("inventory", getInventory())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("image", getImage())
                .append("category", getCategory())
                .append("features", getFeatures())
                .append("isHomeShow", getIsHomeShow())
                .toString();
    }
}
